package com.sptokentest.service;

import cn.dev33.satoken.util.SaResult;
import com.sptokentest.pj.dto.RoleDto;
import com.sptokentest.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author young
 * @since 2023年02月03日
 */
public interface RoleService extends IService<Role> {

    SaResult addRole(RoleDto roleDto);

    SaResult editRole(RoleDto roleDto);

    SaResult setStatus(Role role);

    SaResult delete(Long id);

    SaResult getPage(int page, int pageSize, String rolename);
//    SaResult getDerByPage(int page, int pageSize, String rolename);

}
